public class Main {
    public static void main(String[] args) {
        MySingleLinkedList msl = new MySingleLinkedList();

        msl.createList();

        msl.display();
        msl.addFirst(99);

        msl.addLast(22);
        msl.display();
        msl.addIndex(4,22);
        msl.addIndex(0,22);


        msl.display();

        msl.remove(99);
        msl.display();

        msl.removeAll(22);
        msl.display();
        System.out.println("================");

        msl.clear();
        msl.display();
        System.out.println(msl.size());
    }
}